<?php
/**
 * 附件模型
 *
 * Author:李强
 * Company:上海煦鸣网络科技有限公司
 * Date:2018-01-03
 */

namespace App\Models;


class Attachment extends CommonModel
{
    //
    protected $table = "attachments";
    protected $primaryKey = "id";
    protected $guarded = [];

    /**
     * 关联用户信息
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}
